﻿using System;
using System.Runtime.Serialization;

namespace WuDada.Core.SystemApplications.Domain
{
    /// <summary>
    /// 地區
    /// </summary>
    [Serializable]
    [DataContract]
    public class AreaVO
    {
        #region Constructor

        public AreaVO()
        {

        }

        public AreaVO(CityVO city, string areaName, string areaCode)
        {
            this.City = city;
            this.AreaName = areaName;
            this.AreaCode = areaCode;
        }
        #endregion

        #region Property

        /// <summary>
        /// 識別碼
        /// </summary>
        [DataMember]
        public virtual int AreaId { get; set; }

        /// <summary>
        /// 縣市
        /// </summary>
        public virtual CityVO City { get; set; }

        /// <summary>
        /// 地區名稱
        /// </summary>
        [DataMember]
        public virtual string AreaName { get; set; }

        /// <summary>
        /// 郵遞區號
        /// </summary>
        [DataMember]
        public virtual string AreaCode { get; set; }

        #endregion
    }
}
